package book.items.item23;

import java.util.ArrayList;
import java.util.Collection;
import java.util.List;

public class GenericExample {
	
	private GenericExample() {
	}

	public static void unsafeAdd(List list, Object o) {
		list.add(o);
	}
	
	public static int returnSize(List list) {
		if(list == null) {
			return 0;
		}
		return list.size();
	}
	
	public static void run() {
		Collection<?> c = new ArrayList<String>();
		c.add(null);
	}
}
